<%form_remote_for :category,:url=>{:action=>'update'} do |f|%>
<span class="float_right admin" id="edit_item_action_<%=@category.id%>">
<%=submit_tag "save".t,
:onclick=>"Element.show('indicator_#{@category.id}');Element.hide('edit_item_action_#{@category.id}')
",
:id=>"submit_tag",:style=>'width:40px'
%>
or 
<a href="#" onclick="new Ajax.Request('/categories/cancel_edit/?id=<%=@category.id%>',{asynchronous:true,evalScripts:true});Element.hide('edit_item_action_<%=@category.id%>');Element.show('indicator_<%=@category.id%>');">
<%="Cancel".t%></a>
</span>
<span class=float_right><%=indicator(@category.id)%></span>
<%=f.text_field "name",:size=>"16",:value=>@category.name%>
<%=f.hidden_field "id",:value=>@category.id%>
<%end%>
